#ifndef _GRAPHIC_ENGINE_H_
#define _GRAPHIC_ENGINE_H_

#include <GL/gl.h>
#include <GL/glu.h>
#include <SDL/SDL.h>

#include "Singleton.h"

class GraphicEngine : public Singleton<GraphicEngine>
{
public:
    bool createWindow( int width, int height, int depth );
    void clearBackBuffer( void );
    void swapBuffers( void );
    void exitEngine( void );

private:
    bool initGL( void );
    bool initSDL( void );
    int m_width;
    int m_height;
    int m_depth;
    SDL_Surface * m_screen;
};


#endif
